package com.sisbibvir.unmsm.entidades;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the tema database table.
 * 
 */
@Entity
public class Tema implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	private String detalle;

	@Column(name="nro_posts")
	private int nroPosts;

	//bi-directional many-to-one association to Post
	@OneToMany(mappedBy="tema")
	private List<Post> posts;

	public Tema() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDetalle() {
		return this.detalle;
	}

	public void setDetalle(String detalle) {
		this.detalle = detalle;
	}

	public int getNroPosts() {
		return this.nroPosts;
	}

	public void setNroPosts(int nroPosts) {
		this.nroPosts = nroPosts;
	}

	public List<Post> getPosts() {
		return this.posts;
	}

	public void setPosts(List<Post> posts) {
		this.posts = posts;
	}

}